package com.itheima.specialstream;

import java.io.DataInputStream;
import java.io.FileInputStream;

public class SpecialInStream {

    public static void main(String[] args) {
        try(
                DataInputStream dis = new DataInputStream(new FileInputStream("./day11-promotion-app/src/b.txt"))
                ){
            byte by = dis.readByte();
            System.out.println(by);
            int i = dis.readInt();
            System.out.println(i);
            double d = dis.readDouble();
            System.out.println(d);
            boolean b = dis.readBoolean();
            System.out.println(b);
            char c = dis.readChar();
            System.out.println(c);
            String str = dis.readUTF();
            System.out.println(str);
        }
        catch (Exception e) {
            e.printStackTrace();
        }
    }
}
